package com.woniu.customer.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName ecp_clients_customer_addition
 */
@TableName(value ="ecp_clients_customer_addition")
@Data
public class CustomerAddition implements Serializable {
    /**
     * 客户ID
     */
    @TableId(type = IdType.AUTO)
    private Long customerId;

    /**
     * 填写人ID
     */
    private Long writterId;

    /**
     * 填写人名称
     */
    private String writterName;

    /**
     * 申请日期
     */
    private Date applicationDate;

    /**
     * 销售员ID
     */
    private Long salesmanId;

    /**
     * 销售员名称
     */
    private String salesmanName;

    /**
     * 销售员所属地区/办事处
     */
    private String salesmanAddress;

    /**
     * 商务地区/办事处
     */
    private String businessAddress;

    /**
     * 公司商务
     */
    private String companyBusiness;

    /**
     * 客户名称
     */
    private String customerName;

    /**
     * 组织机构ID
     */
    private Long organizationalId;

    /**
     * 税号
     */
    private Long dutyNumber;

    /**
     * 上传工商营业执照
     */
    private String industryLicence;

    /**
     * 上传税务登记证
     */
    private String taxationLicence;

    /**
     * 上传组织机构代码证
     */
    private String organizationalLicence;

    /**
     * 客户类型
     */
    private Integer customerType;

    /**
     * 客户背景
     */
    private String customerBackground;

    /**
     * 行业范围
     */
    private Integer industryScope;

    /**
     * 企业性质
     */
    private Integer natureEnterprise;

    /**
     * 订单类型
     */
    private Integer orderType;

    /**
     * 付款方式
     */
    private Integer paymentMethod;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CustomerAddition other = (CustomerAddition) that;
        return (this.getCustomerId() == null ? other.getCustomerId() == null : this.getCustomerId().equals(other.getCustomerId()))
            && (this.getWritterId() == null ? other.getWritterId() == null : this.getWritterId().equals(other.getWritterId()))
            && (this.getWritterName() == null ? other.getWritterName() == null : this.getWritterName().equals(other.getWritterName()))
            && (this.getApplicationDate() == null ? other.getApplicationDate() == null : this.getApplicationDate().equals(other.getApplicationDate()))
            && (this.getSalesmanId() == null ? other.getSalesmanId() == null : this.getSalesmanId().equals(other.getSalesmanId()))
            && (this.getSalesmanName() == null ? other.getSalesmanName() == null : this.getSalesmanName().equals(other.getSalesmanName()))
            && (this.getSalesmanAddress() == null ? other.getSalesmanAddress() == null : this.getSalesmanAddress().equals(other.getSalesmanAddress()))
            && (this.getBusinessAddress() == null ? other.getBusinessAddress() == null : this.getBusinessAddress().equals(other.getBusinessAddress()))
            && (this.getCompanyBusiness() == null ? other.getCompanyBusiness() == null : this.getCompanyBusiness().equals(other.getCompanyBusiness()))
            && (this.getCustomerName() == null ? other.getCustomerName() == null : this.getCustomerName().equals(other.getCustomerName()))
            && (this.getOrganizationalId() == null ? other.getOrganizationalId() == null : this.getOrganizationalId().equals(other.getOrganizationalId()))
            && (this.getDutyNumber() == null ? other.getDutyNumber() == null : this.getDutyNumber().equals(other.getDutyNumber()))
            && (this.getIndustryLicence() == null ? other.getIndustryLicence() == null : this.getIndustryLicence().equals(other.getIndustryLicence()))
            && (this.getTaxationLicence() == null ? other.getTaxationLicence() == null : this.getTaxationLicence().equals(other.getTaxationLicence()))
            && (this.getOrganizationalLicence() == null ? other.getOrganizationalLicence() == null : this.getOrganizationalLicence().equals(other.getOrganizationalLicence()))
            && (this.getCustomerType() == null ? other.getCustomerType() == null : this.getCustomerType().equals(other.getCustomerType()))
            && (this.getCustomerBackground() == null ? other.getCustomerBackground() == null : this.getCustomerBackground().equals(other.getCustomerBackground()))
            && (this.getIndustryScope() == null ? other.getIndustryScope() == null : this.getIndustryScope().equals(other.getIndustryScope()))
            && (this.getNatureEnterprise() == null ? other.getNatureEnterprise() == null : this.getNatureEnterprise().equals(other.getNatureEnterprise()))
            && (this.getOrderType() == null ? other.getOrderType() == null : this.getOrderType().equals(other.getOrderType()))
            && (this.getPaymentMethod() == null ? other.getPaymentMethod() == null : this.getPaymentMethod().equals(other.getPaymentMethod()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCustomerId() == null) ? 0 : getCustomerId().hashCode());
        result = prime * result + ((getWritterId() == null) ? 0 : getWritterId().hashCode());
        result = prime * result + ((getWritterName() == null) ? 0 : getWritterName().hashCode());
        result = prime * result + ((getApplicationDate() == null) ? 0 : getApplicationDate().hashCode());
        result = prime * result + ((getSalesmanId() == null) ? 0 : getSalesmanId().hashCode());
        result = prime * result + ((getSalesmanName() == null) ? 0 : getSalesmanName().hashCode());
        result = prime * result + ((getSalesmanAddress() == null) ? 0 : getSalesmanAddress().hashCode());
        result = prime * result + ((getBusinessAddress() == null) ? 0 : getBusinessAddress().hashCode());
        result = prime * result + ((getCompanyBusiness() == null) ? 0 : getCompanyBusiness().hashCode());
        result = prime * result + ((getCustomerName() == null) ? 0 : getCustomerName().hashCode());
        result = prime * result + ((getOrganizationalId() == null) ? 0 : getOrganizationalId().hashCode());
        result = prime * result + ((getDutyNumber() == null) ? 0 : getDutyNumber().hashCode());
        result = prime * result + ((getIndustryLicence() == null) ? 0 : getIndustryLicence().hashCode());
        result = prime * result + ((getTaxationLicence() == null) ? 0 : getTaxationLicence().hashCode());
        result = prime * result + ((getOrganizationalLicence() == null) ? 0 : getOrganizationalLicence().hashCode());
        result = prime * result + ((getCustomerType() == null) ? 0 : getCustomerType().hashCode());
        result = prime * result + ((getCustomerBackground() == null) ? 0 : getCustomerBackground().hashCode());
        result = prime * result + ((getIndustryScope() == null) ? 0 : getIndustryScope().hashCode());
        result = prime * result + ((getNatureEnterprise() == null) ? 0 : getNatureEnterprise().hashCode());
        result = prime * result + ((getOrderType() == null) ? 0 : getOrderType().hashCode());
        result = prime * result + ((getPaymentMethod() == null) ? 0 : getPaymentMethod().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", customerId=").append(customerId);
        sb.append(", writterId=").append(writterId);
        sb.append(", writterName=").append(writterName);
        sb.append(", applicationDate=").append(applicationDate);
        sb.append(", salesmanId=").append(salesmanId);
        sb.append(", salesmanName=").append(salesmanName);
        sb.append(", salesmanAddress=").append(salesmanAddress);
        sb.append(", businessAddress=").append(businessAddress);
        sb.append(", companyBusiness=").append(companyBusiness);
        sb.append(", customerName=").append(customerName);
        sb.append(", organizationalId=").append(organizationalId);
        sb.append(", dutyNumber=").append(dutyNumber);
        sb.append(", industryLicence=").append(industryLicence);
        sb.append(", taxationLicence=").append(taxationLicence);
        sb.append(", organizationalLicence=").append(organizationalLicence);
        sb.append(", customerType=").append(customerType);
        sb.append(", customerBackground=").append(customerBackground);
        sb.append(", industryScope=").append(industryScope);
        sb.append(", natureEnterprise=").append(natureEnterprise);
        sb.append(", orderType=").append(orderType);
        sb.append(", paymentMethod=").append(paymentMethod);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}